package com.xk.timerapp.data;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class AlarmClock {
    @PrimaryKey(autoGenerate = true)
    public int id;

    public String playtime;
    public String alarmName;
    public String alarmMode;
    public long alarmInterval;
    public int alarmTimes;
    public boolean isopen;
    public String ringtoneName;
    public String ringtoneUrl;
    public boolean vibrate;
    public int alarmHour;
    public int alarmMinute;

    public AlarmClock( ) {

    }
    // 复制构造函数
    public AlarmClock(AlarmClock other) {
        this.alarmName = other.alarmName;
        this.alarmMode = other.alarmMode;
        this.alarmInterval = other.alarmInterval;
        this.alarmTimes = other.alarmTimes;
        this.ringtoneName = other.ringtoneName;
        this.ringtoneUrl = other.ringtoneUrl;
        this.vibrate = other.vibrate;
        this.alarmHour = other.alarmHour;
        this.alarmMinute = other.alarmMinute;
        this.playtime = other.playtime;
    }


    // 构造函数、getter和setter等
}
